"use strict";
var Project_1 = require('../../models/Project');
var AddProjectDto = (function () {
    function AddProjectDto() {
    }
    AddProjectDto.toProject = function (userId, body) {
        var project = new Project_1.Project();
        project.title = body.title;
        project.user = userId;
        project.description = body.description;
        project.open = body.open;
        project.createdAt = new Date();
        return project;
    };
    return AddProjectDto;
}());
exports.AddProjectDto = AddProjectDto;
